package org.amos.security.properties;

import lombok.Data;
import me.zhyd.oauth.config.AuthConfig;
import me.zhyd.oauth.config.AuthDefaultSource;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;

import java.util.Collections;
import java.util.Map;

@Data
@Configuration
@RefreshScope
@ConfigurationProperties(prefix = SocialProperties.PREFIX)
public class SocialProperties {
    public static final String PREFIX = "amos.social";
    private Boolean enabled = false;
    private String url;
    private Map<AuthDefaultSource, AuthConfig> oauth = Collections.EMPTY_MAP;
}

